package cn.caiyj.algorithm.util;

import com.alibaba.fastjson.support.odps.udf.CodecCheck;

/**
 * @Description:
 * @author:CAIYJ
 * @Date:2018/10/24 21:25
 */
public class BaseUtil {


    public static boolean less(Comparable v, Comparable w) {
        return v.compareTo(w) < 0;
    }

    public static void exch(Comparable[] comparables, int i, int j) {
        Comparable t = comparables[i];
        comparables[i] = comparables[j];
        comparables[j] = t;
    }

}
